package cn.handong.tool.spring_aop.异常重试;

import lombok.Data;

@Data
public class AMException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4203908423880201281L;
	private String statusCode;
	private String subStatusCode;
	private String message;
	private Object data;

	private AMException() {
	}

	public AMException(String statusCode, String subStatusCode, String message, Object data) {
		this.statusCode = statusCode;
		this.subStatusCode = subStatusCode;
		this.message = message;
		this.data = data;
	}
}
